package com.xgp.function;

import java.util.function.Function;

public class Demo1 {
    public static void main(String[] args) {
//        Function<String,String> function = new Function<String, String>() {
////            @Override
////            public String apply(String s) {
////                return s;
////            }
////        };

//        Function<String,String> function = (str) -> {return str;};
        Function<String,String> function = str -> str;

        System.out.println(function.apply("dsasa"));
    }
}
